package com.ermao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author Ermao
 * Date: 2021/8/31 0:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {
	@TableId(type = IdType.AUTO)
	private Integer userId;

	private Integer accountNumber;
	private String password;
	private String nickname;
	private String email;
	private Integer days;
	private LocalDate lastPunchDate;
	private Integer budget;

	private Integer deleted;

	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
